package com.cssl.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Getter;

import java.util.Date;
import java.util.List;

@Data
@TableName(value = "booksmanagement")
public class Booksmanagement {
    @TableId
    private Integer jid; //借出ID
    private String uname;//借书人姓名
    private Integer sid;//图书id
    private String Callnumber; //索书号
    private String bookname;//借出的书名
    private Date lend;//借出日期
    private Date also;//应还日期
    private Double Dailyrental;//单日租金
    private String state;//状态

    @TableField(exist = false)
    private String author;

    @TableField(exist = false)
    private long yuqi;
    @TableField(exist = false)
    private Published published; //出版社

    @TableField(exist = false)
    private List<User> users;

    @TableField(exist = false)
    private List<Bookinformation> bfs;
}
